import store from '@/store/index.js'; //需要引入store
export function onToken() {
	var that = this;
	uni.getStorage({
		key: 'token',
		success: function(res) {
			that.token = res.data;
		},
		fail: function() {
			store.state.isAfficheShow =true
			console.log("登录")
			console.log(store.state.isAfficheShow)
			uni.navigateTo({
				url: '/pages/login/login'
			});
		},
	});
}